package com.xca.znb.model.impl;

import android.content.Context;

import com.xca.znb.database.UserDAO;
import com.xca.znb.entity.Local;
import com.xca.znb.model.imodel.ILocalManager;

import java.util.List;

public class LocalManagerImpl implements ILocalManager {
    private UserDAO userDAO ;
    public LocalManagerImpl(Context context){
        userDAO = new UserDAO(context);
    }

    @Override
    public List<Local> getLocalByPhone(String phone) {
        return userDAO.getLocalByPhone(phone);
    }

}
